package cn.skyclass.events
{
	import flash.events.Event;
	
	/**
	 * 自定义事件类型
	 */
	public class CustomEvent extends Event
	{
		public static const GO_BACK:String = "goBack";
		public static const GO_HOME:String = "goHome";
		public static const SUBMIT:String = "submit";
		public static const CANCEL:String = "cancel";
		
		
		public var msg:String;
		public var data:Object;
		public var data1:Object;
		public var data2:Object;
		
		
		public function CustomEvent(type:String, data:Object=null, msg:String=null){
			super(type);
			this.msg = msg;
			this.data = data;
		}
		
		override public function clone():Event{
			var e:CustomEvent = new CustomEvent(this.type, this.data, this.msg);
			e.data1 = this.data1;
			e.data2 = this.data2;
			return e;
		}				
	}
}